package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.SCart;
import com.example.mapper.SCartMapper;
import com.example.service.SCartService;
import com.example.vo.SCartVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 购物车，平凡计算可采用redis(hash),没有总价因为前端可计算 服务实现类
 * </p>
 *
 * @author zh
 * @since 2024-05-17 03:57:20
 */
@Service
public class SCartServiceImpl extends ServiceImpl<SCartMapper, SCart> implements SCartService {

    @Autowired
    private SCartMapper sCartMapper;
    @Override
    public List<SCart> pageCart(Long userId) {
        return sCartMapper.list(userId);
    }
}
